﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace EShop.Net.Model.Entity
{
    [SugarTable("t_merchant", TableDescription = "商家表")]
    public class MerchantInfo
    {
        [Display(Name = "自增ID种子1")]
        [SugarColumn(ColumnDescription = "用户ID", IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        [SugarColumn(ColumnDescription = "商家账号", IsNullable = false)]
        [StringLength(20, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string account { get; set; }

        [SugarColumn(ColumnDescription = "商家密码", IsNullable = false)]
        //[StringLength(20, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string password { get; set; }

        [SugarColumn(ColumnDescription = "创建时间[时间戳]")]
        public long? createTime { get; set; }

        [SugarColumn(ColumnDescription = "更新时间[时间戳]", IsNullable = true)]
        public long? updateTime { get; set; }

        [SugarColumn(ColumnDescription = "状态[0-正常，1-禁用]")]
        public int status { get; set; }
    }
}
